﻿
<fieldset id="menufieldSet">
	<legend class="main" onClick="switchshow();" style="cursor: pointer">Options Avancées</legend>
	<table id="menu">
		<tr>
			<td>
				<form action="./index.php?page=setTime.php" method="post"
					name="form2">
					<table>
						<tr>
							<td align="left" nowrap>Changement du temps de référence</td>
							<td width="100%">&nbsp;</td>
							<td><input type="text" name="login" size="10"></td>
							<td><input type="password" name="password" size="10"></td>
							<td><input name="submitlog" type="submit" value="Set Time"></td>
							<td style="background-color: #999999; cursor: help;"
								title="login= set, password= time">Password?</td>
						</tr>

					</table>
				</form>

				<form action="./index.php?page=resetDB.php" method="post"
					name="form2">
					<table>
						<tr>
							<td align="left" nowrap>Reset de la base de donnée de la course</td>
							<td width="100%">&nbsp;</td>
							<td><input type="text" name="login" size="10"></td>
							<td><input type="password" name="password" size="10"></td>
							<td><input name="submitlog" type="submit" value="Reset"></td>
							<td style="background-color: #999999; cursor: help;"
								title="login= reset, password= database">Password?</td>

						</tr>

					</table>
				</form>
				<form action="./index.php?page=config.php" method="post"
					name="form2">
					<table>
						<tr>
							<td align="left" nowrap>Modification de la course</td>
							<td width="100%">&nbsp;</td>
							<td><input type="text" name="login" size="10"></td>
							<td><input type="password" name="password" size="10"></td>
							<td>
							<select name="course">
								<?php foreach (Config::$courses as $course){ ?>
									<option value="<?php echo $course;?>" ><?php echo $course;?></option>
								<?php } ?>
							</select>
							</td>

							<td><input name="submitlog" type="submit" value="Set Course"></td>
							<td style="background-color: #999999; cursor: help;"
								title="login= set, password= course">Password?</td>

						</tr>

					</table>
				</form>
			</td>
		</tr>
	</table>
</fieldset>
<script>
	function isMenuOpen(){
		return document.getElementById('menu').style.display=="block";
	}
	
	function closeMenu(){
		document.getElementById('menu').style.display='none';
		
	}
	function openMenu(){
		document.getElementById('menu').style.display='block';
		
	}


	function switchshow(){
		if(isMenuOpen()){
			closeMenu();
		}else{
			openMenu()
		}
	}
	

closeMenu();
</script>
